package com.eva.framework.common.servlet;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Schema(description = "Servlet配置")
@Configuration
@ConfigurationProperties(prefix = "app.servlet", ignoreInvalidFields = true)
public class ServletProperties {

    @Schema(description = "重写配置")
    private RewriteConfig rewrite;

    @Data
    @Configuration
    @Schema(description = "重写配置")
    public static class RewriteConfig {

        @Schema(description = "无需拷贝请求流和响应流副本的请求路径正则列表（即无需请求流进行多次读取的请求）")
        private String[] excludePathPatterns;
    }
}
